package 访问模式;

import java.util.Date;

public class ProjectElement implements Element{
    private String projectName;
    private String projectContent;
    private String visitorName;
    private Date vistorTime;

    public ProjectElement(String projectName, String projectContent) {
        this.projectName = projectName;
        this.projectContent = projectContent;
    }

    public void accept(Visitor visitor){
        visitor.visit(this);
    }

    public void signature(String visitorName, Date vistorTime) {
        this.visitorName = visitorName;
        this.vistorTime = vistorTime;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getProjectContent() {
        return projectContent;
    }

    public void setProjectContent(String projectContent) {
        this.projectContent = projectContent;
    }

    public String getVisitorName() {
        return visitorName;
    }

    public void setVisitorName(String visitorName) {
        this.visitorName = visitorName;
    }

    public Date getVistorTime() {
        return vistorTime;
    }

    public void setVistorTime(Date vistorTime) {
        this.vistorTime = vistorTime;
    }
}
